{include file="header.html"}
<div id="rightTop">
  <p>{$lang.evaluation_manage}</p>
  <ul class="subnav">
    <li><span>{$lang.evaluation_buyer}</span></li>
    <li><a class="btn1" href="index.php?app=evaluation&amp;act=get_evaluation_seller">{$lang.evaluation_seller}</a></li>
  </ul>
</div>

<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
          <input type="hidden" name="app" value="evaluation" />
          <input type="hidden" name="act" value="get_evaluation_buyer" />
          {$lang.buyer_username}：
          <input class="queryInput" type="text" name="buyer_name" value="{$smarty.get.buyer_name|escape}" />
          {$lang.seller_store_name}：
          <input class="queryInput" type="text" name="seller_name" value="{$smarty.get.seller_name|escape}" />
          {$lang.evaluation}：
          <select class="querySelect" name="evalscore">
              <option>{$lang.all}</option>
              <option value="3" {if $smarty.get.evalscore eq '3'}selected{/if}>{$lang.good_evaluate}</option>
              <option value="2" {if $smarty.get.evalscore eq '2'}selected{/if}>{$lang.accept_evaluate}</option>
              <option value="1" {if $smarty.get.evalscore eq '1'}selected{/if}>{$lang.bad_evaluate}</option>
          </select>
          {$lang.content}:
          <select class="querySelect" name="havecontent">
              <option>{$lang.all}</option>
              <option value="1" {if $smarty.get.havecontent eq '1'}selected{/if}>{$lang.no_comments}</option>
              <option value='2' {if $smarty.get.havecontent eq '2'}selected{/if}>{$lang.comments}</option>
          </select>
          <input type="submit" class="formbtn" value="{$lang.query}" />
      </div>
    </form>
  </div>
  <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $goods_list}-->
    <tr class="tatr1">
      <td width="10%"  class="firstCell">{$lang.evaluate_man}</td>
      <td width="10%">{$lang.store_evaluated}</td>
      <td width="10%">{$lang.evaluate_level}</td>
      <td width="50%">{$lang.evaluate_content}</td>
      <td width="10%">{$lang.evaluate_time}</td>
      <td>{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$goods_list item=goods}-->
    <tr class="tatr2">
      <td  class="firstCell">{$goods.buyer_name|escape}</td>
      <td>{$goods.seller_name|escape}</td>
      <td> 
          {if $goods.evaluation eq '3'}{$lang.good_evaluate}{/if}
          {if $goods.evaluation eq '2'}{$lang.accept_evaluate}{/if}
          {if $goods.evaluation eq '1'}{$lang.bad_evaluate}{/if}
      </td>
      <td>{$goods.comment|escape}</td>
      <td>
          {$goods.evaluation_time|date}
      </td>
      <td>
      <span>
      <a href="index.php?app=evaluation&amp;act=edit_buyer&amp;rec_id={$goods.rec_id}">{$lang.edit}</a>
      </span>
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="10">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $users}-->
  <div id="dataFuncs">
    <div id="batchAction" class="left paddingT15"> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=user&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
    </div>
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div class="clear"></div>
  </div>
  <!--{/if}-->
</div>
{include file="footer.html"}